

    \filetitle{trend}{Estimate a time trend}{tseries/trend}

	\paragraph{Syntax}

\begin{verbatim}
X = trend(X,range)
\end{verbatim}

\paragraph{Input arguments}

\begin{itemize}
\item
  \texttt{X} {[} tseries {]} - Input time series.
\item
  \texttt{Range} {[} numeric \textbar{} \texttt{@all} \textbar{} char
  {]} - Range for which the trend will be computed; \texttt{@all} means
  the entire range of the input times series.
\end{itemize}

\paragraph{Output arguments}

\begin{itemize}
\tightlist
\item
  \texttt{X} {[} tseries {]} - Output trend time series.
\end{itemize}

\paragraph{Options}

\begin{itemize}
\item
  \texttt{\textquotesingle{}break=\textquotesingle{}} {[} numeric
  \textbar{} \emph{empty} {]} - Vector of breaking points at which the
  trend may change its slope.
\item
  \texttt{\textquotesingle{}connect=\textquotesingle{}} {[}
  \emph{\texttt{true}} \textbar{} \texttt{false} {]} - Calculate the
  trend by connecting the first and the last observations.
\item
  \texttt{\textquotesingle{}diff=\textquotesingle{}} {[} \texttt{true}
  \textbar{} \emph{\texttt{false}} {]} - Estimate the trend on
  differenced data.
\item
  \texttt{\textquotesingle{}log=\textquotesingle{}} {[} \texttt{true}
  \textbar{} \emph{\texttt{false}} {]} - Logarithmise the input data,
  de-logarithmise the output data.
\item
  \texttt{\textquotesingle{}season=\textquotesingle{}} {[} \texttt{true}
  \textbar{} \emph{\texttt{false}} \textbar{} \texttt{2} \textbar{}
  \texttt{4} \textbar{} \texttt{6} \textbar{} \texttt{12} {]} - Include
  deterministic seasonal factors in the trend.
\end{itemize}

\paragraph{Description}

\paragraph{Example}


